<template>
  <div class="StatusDisplay">
    <el-row class="el-row-redefine">
      <el-col :span="12" class="el-col-redefine">
        <div class="state-area">
          <span class="head">机器人状态</span>
          <div class="card-item">
            <span class="card-title">运行状态信息</span>
            <div class="card-content">
              <div class="content-row">
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">机身温度:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="12">
                    <span class="content-item-title">云台水平位置:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
              </div>
              <div class="content-row">
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">运行速度:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="12">
                    <span class="content-item-title">云台垂直位置:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
              </div>
              <div class="content-row">
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">相机倍数:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <!-- <el-col :span="12">
                    <span class="content-item-title"></span>
                    <span class="content-item-text"></span>
                  </el-col>-->
                </el-row>
              </div>
            </div>
          </div>
          <div class="card-item">
            <span class="card-title">通讯状态信息</span>
            <div class="card-content">
              <div class="content-row">
                <el-row>
                  <el-col :span="8">
                    <span class="content-item-title">无线基站:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="8">
                    <span class="content-item-title">控制系统:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="8">
                    <span class="content-item-title">可见光摄像:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
              </div>
              <div class="content-row">
                <el-row>
                  <el-col :span="8">
                    <span class="content-item-title">充电系统:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="8">
                    <span class="content-item-title">红外摄像:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <!-- <el-col :span="8">
                    <span class="content-item-title"></span>
                    <span class="content-item-text"></span>
                  </el-col>-->
                </el-row>
              </div>
            </div>
          </div>
          <div class="card-item">
            <span class="card-title">电池状态信息</span>
            <div class="card-content">
              <div class="content-row">
                <el-row>
                  <el-col :span="24">
                    <span class="content-item-title">当前电池电量:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
              </div>
            </div>
          </div>
          <div class="card-item">
            <span class="card-title">机器人自身模块信息</span>
            <div class="card-content">
              <div class="content-row">
                <span class="row-title">驱动模块</span>
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">左轮:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="12">
                    <span class="content-item-title">右轮:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
                <span class="row-partition"></span>
              </div>
              <div class="content-row">
                <span class="row-title">电源模块</span>
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">外供电源:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="12">
                    <span class="content-item-title">充电状态:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">充电:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <!-- <el-col :span="12">
                    <span class="content-item-title"></span>
                    <span class="content-item-text"></span>
                  </el-col>-->
                </el-row>
                <span class="row-partition"></span>
              </div>
              <div class="content-row">
                <span class="row-title">系统模块</span>
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">运行行程:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="12">
                    <span class="content-item-title">运行时间:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="12">
                    <span class="content-item-title">巡检设备数量:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                  <el-col :span="12">
                    <span class="content-item-title">发现缺陷数量</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
                <span class="row-partition"></span>
              </div>
            </div>
          </div>
        </div>
      </el-col>
      <el-col :span="12" class="el-col-redefine">
        <div class="control-area">
          <span class="head">机器人控制</span>
          <div class="card-item">
            <span class="card-title">运行状态信息</span>
            <div class="card-content">
              <div class="content-row">
                <el-row>
                  <el-col :span="24">
                    <span class="content-item-title">温度:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="24">
                    <span class="content-item-title">湿度:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
                <el-row>
                  <el-col :span="24">
                    <span class="content-item-title">风速:</span>
                    <span class="content-item-text">0</span>
                  </el-col>
                </el-row>
              </div>
            </div>
          </div>
          <div class="card-item">
            <span class="card-title">控制状态信息</span>
            <div class="card-content">
              <div class="content-row">
                <el-form ref="form" label-width="193px">
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="红外功能:">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="可见光功能:">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="雨刷:">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="避障功能:">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="车灯状态:">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col style="width: 193px">
                      <el-form-item label-width="0px" label>
                        <el-select size="mini" placeholder="请选择" v-model="value">
                          <el-option
                            v-for="item in options"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value"
                          ></el-option>
                        </el-select>
                      </el-form-item>
                    </el-col>
                    <el-col style="width: calc(100% - 193px)">
                      <el-form-item label-width="0px" label>
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="充电房（后门）:">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row>
                    <el-col :span="24">
                      <el-form-item label="机器人状态">
                        <el-switch :width="80" active-text="开" inactive-text="关"></el-switch>
                      </el-form-item>
                    </el-col>
                  </el-row>
                </el-form>
              </div>
            </div>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      robot_id: null,
      options: [
        {
          value: "选项1",
          label: "黄金糕"
        },
        {
          value: "选项2",
          label: "双皮奶"
        },
        {
          value: "选项3",
          label: "蚵仔煎"
        },
        {
          value: "选项4",
          label: "龙须面"
        },
        {
          value: "选项5",
          label: "北京烤鸭"
        }
      ],
      value: ""
    };
  },
  created() {
    this.robot_id = localStorage.getItem("ydRobot_id");
  },
  mounted() {},
  methods: {}
};
</script>

<style>
.StatusDisplay {
  width: 100%;
  height: 100%;
  min-width: 900px;
  min-height: 650px;
  display: flex;
  flex-flow: column;
}
.StatusDisplay .el-row-redefine {
  width: 100%;
  height: 100%;
}
.StatusDisplay .el-col-redefine {
  /* width: 100%; */
  height: 100%;
}
.StatusDisplay .state-area,
.StatusDisplay .control-area {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid rgb(203, 238, 202);
}
.StatusDisplay .head {
  display: block;
  width: 100%;
  height: 39px;
  font-size: 17px;
  line-height: 39px;
  text-align: center;
  background-color: rgb(16, 156, 180);
}
.StatusDisplay .card-item {
  width: 86%;
  height: auto;
  margin: 6px auto;
}
.StatusDisplay .card-title {
  display: block;
  width: 100%;
  height: 31px;
  line-height: 31px;
  text-align: center;
  font-size: 15px;
  color: #ff0000;
}
.StatusDisplay .card-content {
  width: 100%;
  height: auto;
  padding: 6px 18px;
  border: 0.5px solid rgb(16, 156, 180);
}
.StatusDisplay .content-row {
  width: 100%;
  height: auto;
}
.StatusDisplay .row-title {
  display: block;
  width: 100%;
  height: 21px;
  line-height: 21px;
  text-align: center;
  font-size: 12px;
  color: #ff0000;
}
.StatusDisplay .row-partition {
  display: block;
  width: 100%;
  height: 1px;
  margin: 1px 0 3px 0;
  border-bottom: 0.5px dashed rgb(16, 156, 180);
}
.StatusDisplay .content-item-title,
.StatusDisplay .content-item-text {
  display: inline-block;
  width: auto;
  height: 29px;
  line-height: 29px;
  font-size: 13px;
  color: rgb(16, 156, 180);
}
.StatusDisplay .el-form-item .el-form-item__label {
  font-weight: normal;
  font-size: 13px;
  color: rgb(16, 156, 180);
}
</style>